package mytest;

import org.apache.commons.logging.impl.Log4JLogger;
import org.apache.log4j.Logger;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import po.User;
import serivce.userService;

@RunWith(value=SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations= {"classpath:config/spring.xml","classpath:config/mybatis-spring.xml"})
public class test {
	
	@Autowired
	private userService us;
	
	private static Logger log = Logger.getLogger(test.class);
	
	@Test
	public void ceshi() {
		
	User u = us.queryByAccount("张三");
	
	System.out.println(u);
	
	log.error("错误信息");
		
		
		
	}
}
